package form;

import java.util.ArrayList;

import javax.swing.*;

import classifier.Node;

public class Example {
	private static Node root;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<String> features = new ArrayList<String>();
		features.add("AC");
		features.add("ABS");
		buildSampleTree();
		HoogMiddenLaag antwoordHaler = new HoogMiddenLaag(features, root);
	    Form myApplication = new Form(features, antwoordHaler);
	    
	    
	    // Specify where will it appear on the screen:
	    myApplication.setLocation(10, 10);
	    myApplication.setSize(300, 300);
	 
	    // Show it!
	    myApplication.setVisible(true);

	}
	
	public static void buildSampleTree() {
		root = new Node("AC");
		Node leaf_hoog = new Node("Hoog");
		Node leaf_midden = new Node("Midden");
		Node leaf_laag = new Node("Laag");
		Node ABS = new Node("ABS");
		
		root.addChild("Yes", leaf_hoog);
		root.addChild("No", ABS);
		ABS.addChild("Yes", leaf_midden);
		ABS.addChild("No", leaf_laag);
		
	}

}
